<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 通过提示框提示用户输入一个数值，用户输入完成后弹出数值的奇偶性
        var num = prompt('请输入一个数字')
        var result = num % 2 == 0 ? '偶数' : '奇数'
        alert(`这个数是：${result}`)
    </script>
</head>
<body>
    
</body>
</html>